using System;
using Se.Framework.Common;

namespace Se.Framework.Web.Mvc.GenericCrud
{
    public class GenericCrudColumnConvertionData
    {
        public bool NameConvertionNeeded 
        {
            get
            {
                return !string.IsNullOrWhiteSpace(NameFrom)
                    && !string.IsNullOrWhiteSpace(NameTo)
                    && !string.Equals(NameFrom, NameTo);
            }
        }

        public string NameFrom { get; set; }

        public string NameTo { get; set; }
    }
}